home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_10_07 / 1007089a < prev    next >
Text File  |  1992-05-03  |  445b  |  24 lines

  1.  
  2. main()
  3.         {
  4.         int c;
  5.         
  6.         while (c = nextsp())
  7.                 putchar(c);
  8.         while (c = nextap())
  9.                 putchar(c);
  10.                 
  11.         }
  12.  
  13. nextsp()
  14.         {
  15.         static char *p = "This string will be shown from the beginning to the end";
  16.         return *p++;
  17.         }
  18.  
  19. nextap()
  20.         {
  21.         char *p = "This string will never be shown";
  22.         return *p++;
  23.         }
  24.